package com.example.smartcitymovie.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import lombok.Data;

@Entity
@Data
public class User {

    @PrimaryKey(autoGenerate = true)
    public int id;

    @ColumnInfo(name = "user_name")
    public String userName;

    @ColumnInfo(name = "password")
    public String password;
    @ColumnInfo(name = "nick_name")
    public String nickName;

    @ColumnInfo(name = "email")
    public String email;

    @ColumnInfo(name = "phonenumber")
    public String phonenumber;

    @ColumnInfo(name = "sex")
    public Integer sex;

    @ColumnInfo(name = "avatar")
    public String avatar;

    @ColumnInfo(name = "id_card")
    public String idCard;

    @ColumnInfo(name = "balance")
    public Float balance;

    @ColumnInfo(name = "score")
    public Integer score;
}
